import { defineStore } from "pinia";
import { ref } from "vue";
import type { Article, VideoType } from "@/types/youdaoDataTypes";

export const useVideoStore = defineStore('video', () => {
    // 视频资源
    const VideoState = ref<VideoType[]>(
        [
            {
                title: "探索人工智能的未来",
                author: "张伟",
                image: "https://img2.baidu.com/it/u=1254050396,2768654999&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=697",
                avatar: "https://img0.baidu.com/it/u=4186192201,2125721021&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500",
                praise: 12345,
                icon: "like-o",
                height: 0,
            },
            {
                title: "绿色能源变革之路",
                author: "李娜",
                image: "https://img0.baidu.com/it/u=166965904,268809168&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=889",
                avatar: "https://img0.baidu.com/it/u=4186192201,2125721021&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500",
                praise: 12345,
                icon: "like-o",
                height: 0
            },
            {
                title: "5G时代的机遇与挑战",
                author: "王磊",
                image: "https://img2.baidu.com/it/u=1254050396,2768654999&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=697",
                avatar: "https://img0.baidu.com/it/u=4186192201,2125721021&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500",
                praise: 12345,
                icon: "like-o",
                height: 0
            },
            {
                title: "揭秘量子计算机",
                author: "赵敏",
                image: "https://img1.baidu.com/it/u=3447221161,3404572656&fm=253&fmt=auto&app=138&f=JPEG?w=393&h=666",
                avatar: "https://img0.baidu.com/it/u=4186192201,2125721021&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500",
                praise: 12345,
                icon: "like-o",
                height: 0
            },
            {
                title: "数字化转型的实践与思考",
                author: "刘洋",
                image: "https://img0.baidu.com/it/u=166965904,268809168&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=889",
                avatar: "https://img0.baidu.com/it/u=4186192201,2125721021&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500",
                praise: 12345,
                icon: "like-o",
                height: 0
            },
            {
                title: "火星探测计划进展",
                author: "陈静",
                image: "https://img1.baidu.com/it/u=1084534350,4231159792&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=1132",
                avatar: "https://img0.baidu.com/it/u=4186192201,2125721021&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500",
                praise: 12345,
                icon: "like-o",
                height: 0
            },
            {
                title: "自动驾驶技术展望",
                author: "吴涛",
                image: "https://img1.baidu.com/it/u=2226670037,3730004380&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=727",
                avatar: "https://img0.baidu.com/it/u=4186192201,2125721021&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500",
                praise: 12345,
                icon: "like-o",
                height: 0
            },
            {
                title: "生物科技在农业领域的应用",
                author: "周丽",
                image: "https://img0.baidu.com/it/u=166965904,268809168&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=889",
                avatar: "https://img0.baidu.com/it/u=4186192201,2125721021&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500",
                praise: 12345,
                icon: "like-o",
                height: 0
            },
            {
                title: "虚拟现实技术的创新发展",
                author: "徐强",
                image: "https://img2.baidu.com/it/u=3998444965,3806901848&fm=253&fmt=auto&app=120&f=JPEG?w=500&h=712",
                avatar: "https://img0.baidu.com/it/u=4186192201,2125721021&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500",
                praise: 12345,
                icon: "like-o",
                height: 0
            },
            {
                title: "网络安全防护策略",
                author: "孙燕",
                image: "https://img1.baidu.com/it/u=1538262551,2073005431&fm=253&fmt=auto&app=138&f=JPEG?w=380&h=532",
                avatar: "https://img0.baidu.com/it/u=4186192201,2125721021&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500",
                praise: 12345,
                icon: "like-o",
                height: 0
            },
            {
                title: "网络安全防护策略",
                author: "孙燕",
                image: "https://img2.baidu.com/it/u=3337288448,1323536241&fm=253&fmt=auto&app=138&f=JPEG?w=338&h=500",
                avatar: "https://img0.baidu.com/it/u=4186192201,2125721021&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500",
                praise: 12345,
                icon: "like-o",
                height: 0
            },
            {
                title: "网络安全防护策略",
                author: "孙燕",
                image: "https://img0.baidu.com/it/u=166965904,268809168&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=889",
                avatar: "https://img0.baidu.com/it/u=4186192201,2125721021&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500",
                praise: 12345,
                icon: "like-o",
                height: 0
            },
            {
                title: "网络安全防护策略",
                author: "孙燕",
                image: "http://t15.baidu.com/it/u=1372263335,2076564358&fm=224&app=112&f=JPEG?w=500&h=500",
                avatar: "https://img0.baidu.com/it/u=4186192201,2125721021&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500",
                praise: 12345,
                icon: "like-o",
                height: 0
            },
            {
                title: "网络防护策略",
                author: "孙燕",
                image: "https://img1.baidu.com/it/u=2912749572,3240254084&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=1046",
                avatar: "https://img0.baidu.com/it/u=4186192201,2125721021&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500",
                praise: 12345,
                icon: "like-o",
                height: 0
            },
            {
                title: "网络安全策略",
                author: "孙燕",
                image: "https://img2.baidu.com/it/u=2242971962,2237447488&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=869",
                avatar: "https://img0.baidu.com/it/u=4186192201,2125721021&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500",
                praise: 12345,
                icon: "like-o",
                height: 0
            },
            {
                title: "网络安全防护策略",
                author: "孙燕",
                image: "http://t14.baidu.com/it/u=2672261318,1790857921&fm=224&app=112&f=JPEG?w=368&h=500",
                avatar: "https://img0.baidu.com/it/u=4186192201,2125721021&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500",
                praise: 12345,
                icon: "like-o",
                height: 0
            },
            {
                title: "网络安全防护策略",
                author: "孙燕",
                image: "https://img0.baidu.com/it/u=166965904,268809168&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=889",
                avatar: "https://img0.baidu.com/it/u=4186192201,2125721021&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500",
                praise: 12345,
                icon: "like-o",
                height: 0
            },
            {
                title: "网络安全防护策略",
                author: "孙燕",
                image: "https://img0.baidu.com/it/u=3489519166,1012397152&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=667",
                avatar: "https://img0.baidu.com/it/u=4186192201,2125721021&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500",
                praise: 12345,
                icon: "like-o",
                height: 0
            },
            {
                title: "网络安全防护策略",
                author: "孙燕",
                image: "https://img0.baidu.com/it/u=451160769,3405571949&fm=253&fmt=auto&app=138&f=JPEG?w=281&h=499",
                avatar: "https://img0.baidu.com/it/u=4186192201,2125721021&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500",
                praise: 12345,
                icon: "like-o",
                height: 0
            },
            {
                title: "探索未来城市",
                author: "林浩然",
                image: "https://img2.baidu.com/it/u=174867414,1609514371&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=667",
                avatar: "https://img1.baidu.com/it/u=3087020278,2376411138&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=501",
                praise: 7890,
                icon: "fire",
                height: 0
            },
            {
                title: "绿色能源的新突破", 
                author: "赵思远", 
                image: "http://t14.baidu.com/it/u=2672261318,1790857921&fm=224&app=112&f=JPEG?w=368&h=500", 
                avatar: "https://img1.baidu.com/it/u=3087020278,2376411138&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=501", 
                praise: 5678, 
                icon: "fire",
                height: 0
            },
            {
                
                title: "5G与未来教育", 
                author: "李梦琪", 
                image: "https://img0.baidu.com/it/u=2306877942,4135895740&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=934", 
                avatar: "https://img1.baidu.com/it/u=3087020278,2376411138&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=501", 
                praise: 4321, 
                icon: "fire",
                height: 0
            },
            {
                
                title: "人工智能的伦理考量", 
                author: "王博涵", 
                image: "https://img1.baidu.com/it/u=2520837525,1666984292&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=1084", 
                avatar: "https://img1.baidu.com/it/u=3087020278,2376411138&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=501", 
                praise: 8901, 
                icon: "fire",
                height: 0
            },
            {
                
                title: "生物科技与未来食品", 
                author: "陈晓东", 
                image: "https://img2.baidu.com/it/u=174867414,1609514371&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=667", 
                avatar: "https://img1.baidu.com/it/u=3087020278,2376411138&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=501", 
                praise: 6543, 
                icon: "fire",
                height: 0
            },
            {
                
                title: "生物科技与未来食品", 
                author: "陈晓东", 
                image: "http://t14.baidu.com/it/u=2390292694,3996606021&fm=224&app=112&f=JPEG?w=480&h=480", 
                avatar: "https://img1.baidu.com/it/u=3087020278,2376411138&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=501", 
                praise: 6543, 
                icon: "fire",
                height: 0
            },
            {
                
                title: "生物科技与未来食品", 
                author: "陈晓东", 
                image: "https://img2.baidu.com/it/u=2258848979,582163357&fm=253&fmt=auto&app=138&f=JPEG?w=292&h=500", 
                avatar: "https://img1.baidu.com/it/u=3087020278,2376411138&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=501", 
                praise: 6543, 
                icon: "fire",
                height: 0
            },
            {
                
                title: "生物科技与未来食品", 
                author: "陈晓东", 
                image: "https://img2.baidu.com/it/u=1254050396,2768654999&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=697", 
                avatar: "https://img1.baidu.com/it/u=3087020278,2376411138&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=501", 
                praise: 6543, 
                icon: "fire",
                height: 0
            },
            {
                
                title: "生物科技与未来食品", 
                author: "陈晓东", 
                image: "https://img2.baidu.com/it/u=2258848979,582163357&fm=253&fmt=auto&app=138&f=JPEG?w=292&h=500", 
                avatar: "https://img1.baidu.com/it/u=3087020278,2376411138&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=501", 
                praise: 6543, 
                icon: "fire",
                height: 0
            },
            {
                
                title: "生物科技与未来食品", 
                author: "陈晓东", 
                image: "https://img1.baidu.com/it/u=373858490,1770085767&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=1422", 
                avatar: "https://img1.baidu.com/it/u=3087020278,2376411138&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=501", 
                praise: 6543, 
                icon: "fire",
                height: 0
            },
            {
                
                title: "生物科技与未来食品", 
                author: "陈晓东", 
                image: "https://img0.baidu.com/it/u=1278640366,2705344841&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=889", 
                avatar: "https://img1.baidu.com/it/u=3087020278,2376411138&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=501", 
                praise: 6543, 
                icon: "fire",
                height: 0
            },
            {
                
                title: "生物科技与未来食品", 
                author: "陈晓东", 
                image: "https://img2.baidu.com/it/u=176924015,1930751908&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=749", 
                avatar: "https://img1.baidu.com/it/u=3087020278,2376411138&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=501", 
                praise: 6543, 
                icon: "fire",
                height: 0
            },
            {   
                title: "生物科技与未来食品", 
                author: "陈晓东", 
                image: "https://img1.baidu.com/it/u=2520837525,1666984292&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=1084", 
                avatar: "https://img1.baidu.com/it/u=3087020278,2376411138&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=501", 
                praise: 6543, 
                icon: "fire",
                height: 0
            }
        ]

    )
    //  直播资源
    const LiveState = ref<Article[]>(
        [
            {
                title: "探索未来城市",
                author: "林浩然",
                image: "https://img2.baidu.com/it/u=174867414,1609514371&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=667",
                avatar: "https://img1.baidu.com/it/u=3087020278,2376411138&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=501",
                heat: 7890,
                icon: "fire",
                height: 0
            },
            {
                title: "绿色能源的新突破", 
                author: "赵思远", 
                image: "http://t14.baidu.com/it/u=2672261318,1790857921&fm=224&app=112&f=JPEG?w=368&h=500", 
                avatar: "https://img1.baidu.com/it/u=3087020278,2376411138&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=501", 
                heat: 5678, 
                icon: "fire",
                height: 0
            },
            {
                
                title: "5G与未来教育", 
                author: "李梦琪", 
                image: "https://img0.baidu.com/it/u=2306877942,4135895740&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=934", 
                avatar: "https://img1.baidu.com/it/u=3087020278,2376411138&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=501", 
                heat: 4321, 
                icon: "fire",
                height: 0
            },
            {
                
                title: "人工智能的伦理考量", 
                author: "王博涵", 
                image: "https://img1.baidu.com/it/u=2520837525,1666984292&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=1084", 
                avatar: "https://img1.baidu.com/it/u=3087020278,2376411138&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=501", 
                heat: 8901, 
                icon: "fire",
                height: 0
            },
            {
                
                title: "生物科技与未来食品", 
                author: "陈晓东", 
                image: "https://img2.baidu.com/it/u=174867414,1609514371&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=667", 
                avatar: "https://img1.baidu.com/it/u=3087020278,2376411138&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=501", 
                heat: 6543, 
                icon: "fire",
                height: 0
            },
            {
                
                title: "生物科技与未来食品", 
                author: "陈晓东", 
                image: "http://t14.baidu.com/it/u=2390292694,3996606021&fm=224&app=112&f=JPEG?w=480&h=480", 
                avatar: "https://img1.baidu.com/it/u=3087020278,2376411138&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=501", 
                heat: 6543, 
                icon: "fire",
                height: 0
            },
            {
                
                title: "生物科技与未来食品", 
                author: "陈晓东", 
                image: "https://img2.baidu.com/it/u=2258848979,582163357&fm=253&fmt=auto&app=138&f=JPEG?w=292&h=500", 
                avatar: "https://img1.baidu.com/it/u=3087020278,2376411138&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=501", 
                heat: 6543, 
                icon: "fire",
                height: 0
            },
            {
                
                title: "生物科技与未来食品", 
                author: "陈晓东", 
                image: "https://img2.baidu.com/it/u=1254050396,2768654999&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=697", 
                avatar: "https://img1.baidu.com/it/u=3087020278,2376411138&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=501", 
                heat: 6543, 
                icon: "fire",
                height: 0
            },
            {
                
                title: "生物科技与未来食品", 
                author: "陈晓东", 
                image: "https://img2.baidu.com/it/u=2258848979,582163357&fm=253&fmt=auto&app=138&f=JPEG?w=292&h=500", 
                avatar: "https://img1.baidu.com/it/u=3087020278,2376411138&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=501", 
                heat: 6543, 
                icon: "fire",
                height: 0
            },
            {
                
                title: "生物科技与未来食品", 
                author: "陈晓东", 
                image: "https://img1.baidu.com/it/u=373858490,1770085767&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=1422", 
                avatar: "https://img1.baidu.com/it/u=3087020278,2376411138&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=501", 
                heat: 6543, 
                icon: "fire",
                height: 0
            },
            {
                
                title: "生物科技与未来食品", 
                author: "陈晓东", 
                image: "https://img0.baidu.com/it/u=1278640366,2705344841&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=889", 
                avatar: "https://img1.baidu.com/it/u=3087020278,2376411138&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=501", 
                heat: 6543, 
                icon: "fire",
                height: 0
            },
            {
                
                title: "生物科技与未来食品", 
                author: "陈晓东", 
                image: "https://img2.baidu.com/it/u=176924015,1930751908&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=749", 
                avatar: "https://img1.baidu.com/it/u=3087020278,2376411138&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=501", 
                heat: 6543, 
                icon: "fire",
                height: 0
            },
            {   
                title: "生物科技与未来食品", 
                author: "陈晓东", 
                image: "https://img1.baidu.com/it/u=2520837525,1666984292&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=1084", 
                avatar: "https://img1.baidu.com/it/u=3087020278,2376411138&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=501", 
                heat: 6543, 
                icon: "fire",
                height: 0
            }
        ]
    )
    return {
        VideoState,
        LiveState
    }
})